package com.yxw.live_vod_backend_boot.service.impl;

import com.yxw.live_vod_backend_boot.service.OrderBackendService;
import com.yxw.live_vod_facade.dto.OrderQueryDTO;
import com.yxw.live_vod_facade.feign.OrderFeignClient;
import com.yxw.live_vod_facade.vo.OrderVO;
import com.yxw.yxnet_cd_center.common.dto.PageVO;
import com.yxw.yxnet_cd_center.common.utils.BaseResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 订单后台管理Service业务层处理
 *
 * @author xiexuxin
 * @date 2023-12-04
 */
@Slf4j
@Service
public class OrderBackendServiceImpl implements OrderBackendService {

    @Autowired
    private OrderFeignClient orderFeignClient;

    /**
     * 获取订单列表
     * @param queryDTO
     * @return
     */
    @Override
    public BaseResult<PageVO<OrderVO>> getOrderList(OrderQueryDTO queryDTO) {
        return orderFeignClient.getOrderList(queryDTO);
    }

    /**
     * 获取订单详情
     * @param orderId
     * @return
     */
    @Override
    public BaseResult getOrderById(Long orderId) {
        return orderFeignClient.getOrderById(orderId);
    }

}
